"""
======================
@author:SUNLIN
@time:2025/3/5 18:58
@email:1232@163.com
======================
"""
import requests as requests
from bs4 import BeautifulSoup

# 定义url
url_douban_movie = 'https://movie.douban.com/subject/1292064/'
headers = {'user-agent': 'my-app/0.0.1'}
response = requests.get(url=url_douban_movie, headers=headers)


soup = BeautifulSoup(response.text, 'html.parser')

print(soup.prettify())

## 取出相应的信息
print(soup.title.text)
print(soup.title.string) # 标题提取
print(soup.find_all(property="v:summary")[0].text)
